/**
  ******************************************************************************
  * @file           : esp8266_wifi_ap_sta.h
  * @brief          : Header for esp8266_wifi_ap_sta.c file.
  *                   This file contains the common defines of the application.
  ******************************************************************************
  * @attention
  *	Created by Chen Lu in 20210602
  *
  ******************************************************************************
  */

#ifndef __ESP8266_WIFI_AP_STA_H
#define __ESP8266_WIFI_AP_STA_H

#include "esp8266_common.h"

WifiConfigStructure ESP8266_WIFI_AP;

void esp8266_wifi_construct(WifiConfigStructure *wificonfig);
int esp8266_set_apsta_wifimode(void);
int esp8266_config_wifi_ap(WifiConfigStructure *wificonfig);
int esp8266_enter_UDP_passthrough(uint8_t* remote_IP,int remote_port);
int esp8266_enable_passthrough(void);
int esp8266_send_data_state(void);
int esp8266_apsta_init(void);
int esp8266_establish_UDP(uint8_t* remote_IP,int remote_port,int local_port,uint8_t mode);

#endif
